<?php
    
    namespace App\Module\Api\Validator;
    use App\System\Base\Validator\BaseValidator;

    /**
     * 定义验证器类
     * @author huwei
     */
    class CommonValidator extends BaseValidator
    {
        protected $rules = [
            //'q' => 'required',
            's' => 'required',
            'n' => 'required'
        ];
        
        protected $messages = [
        ];

        protected $attributes = [
            //'q' => '请求参数q',
            's' => '请求参数s',
            'n' => '请求参数n',

        ];
    }